Plots

Column

Scatter Plot Bill length Vs Bill Breadth

Column

Chart B

Chart C

Data

---
title: "Advance Dashboard"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    social: ["menu"]
    source_code: embed
---

```{r setup, include=FALSE}
library(flexdashboard)
library(palmerpenguins)
library(fontawesome)
library(tidyverse)
library(plotly)
library(DT)
data("penguins")
```
Plots
=======================================================================
Column {data-width=650}
-----------------------------------------------------------------------

### Scatter Plot Bill length Vs Bill Breadth

```{r}
b = penguins %>% ggplot(aes(x =bill_length_mm, y =bill_depth_mm, color = species)) +
  geom_point()
ggplotly(b)
```

Column {data-width=350}
-----------------------------------------------------------------------

### Chart B

```{r}
penguins %>% ggplot(aes(x = body_mass_g, y = sex, fill = sex)) +
  geom_boxplot()
```

### Chart C

```{r}
a <- penguins %>% ggplot(aes(x = flipper_length_mm, fill = species)) +
  geom_histogram() + facet_wrap(~species)
ggplotly(a)
```

Data
========================================================================
```{r}
penguins %>% datatable(extensions = "Buttons", options = list(dom = "Blftrip", buttons = c("copy", "csv", "excel", "pdf", "print")))
```